package com.springboot.frame.web.quartz;

import org.quartz.Job;

/**
 * @author Madman 2018年7月25日 定时任务实现实体类
 */
public class ScheduleJobProperties {

	/** 任务名称 **/
	private String jobName;

	/** 任务分组 **/
	private String jobGroup;

	/**
	 * job的类
	 */
	private Class<? extends Job> jobClass;

	/** 触发器名 **/
	private String triggerName;

	/** 触发器组名 **/
	private String triggerGroupName;

	/** 任务运行时间表达式 **/
	private String cronExpression;

	/** 任务描述 **/
	private String desc;

	public ScheduleJobProperties(String jobName, String jobGroup, Class<? extends Job> jobClass, String triggerName, String triggerGroupName) {
		super();
		this.jobName = jobName;
		this.jobGroup = jobGroup;
		this.triggerName = triggerName;
		this.jobClass = jobClass;
		this.triggerGroupName = triggerGroupName;
	}

	public ScheduleJobProperties(String jobName, String jobGroup, Class<? extends Job> jobClass, String triggerName, String triggerGroupName,
								 String cronExpression, String desc) {
		super();
		this.jobName = jobName;
		this.jobGroup = jobGroup;
		this.jobClass = jobClass;
		this.triggerName = triggerName;
		this.triggerGroupName = triggerGroupName;
		this.cronExpression = cronExpression;
		this.desc = desc;
	}

	public String getJobName() {
		return jobName;
	}

	public String getTriggerName() {
		return triggerName;
	}

	public void setTriggerName(String triggerName) {
		this.triggerName = triggerName;
	}

	public String getTriggerGroupName() {
		return triggerGroupName;
	}

	public void setTriggerGroupName(String triggerGroupName) {
		this.triggerGroupName = triggerGroupName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobGroup() {
		return jobGroup;
	}

	public void setJobGroup(String jobGroup) {
		this.jobGroup = jobGroup;
	}

	public String getCronExpression() {
		return cronExpression;
	}

	public void setCronExpression(String cronExpression) {
		this.cronExpression = cronExpression;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Class<? extends Job> getJobClass() {
		return jobClass;
	}

	public void setJobClass(Class<? extends Job> jobClass) {
		this.jobClass = jobClass;
	}
}
